package com.ycr.java.event;

import java.util.EventListener;

/**
 * 事件监听器
 * @author ynl
 *
 */
public class CusEventListener implements EventListener {

	// 事件发生后的回调方法
	public void fireCusEvent(CusEvent e) {

		EventSourceObject eObject = (EventSourceObject) e.getSource();
		System.out.println("My name has been changed!");
		System.out.println("I got a new name,named \"" + eObject.getName() + "\"");
	}
}
